﻿using CoreLib;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;

namespace CoreLibTestProject
{
    
    
    /// <summary>
    ///This is a test class for MouseTest and is intended
    ///to contain all MouseTest Unit Tests
    ///</summary>
    [TestClass()]
    public class MouseTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for CoreLib.Mouse Constructor
        ///</summary>
        [TestMethod()]
        public void MouseConstructorTest()
        {
            Game game = null; // TODO: Initialize to an appropriate value
            CoreLib.Mouse target = new CoreLib.Mouse(game);
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for Update
        ///</summary>
        [TestMethod()]
        public void UpdateTest()
        {
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = CoreLib.Mouse.Update();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for LeftButton
        ///</summary>
        [TestMethod()]
        public void LeftButtonTest()
        {
            ButtonState expected = new ButtonState(); // TODO: Initialize to an appropriate value
            ButtonState actual;
            CoreLib.Mouse.LeftButton = expected;
            actual = CoreLib.Mouse.LeftButton;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for MiddleButton
        ///</summary>
        [TestMethod()]
        public void MiddleButtonTest()
        {
            ButtonState expected = new ButtonState(); // TODO: Initialize to an appropriate value
            ButtonState actual;
            CoreLib.Mouse.MiddleButton = expected;
            actual = CoreLib.Mouse.MiddleButton;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for RightButton
        ///</summary>
        [TestMethod()]
        public void RightButtonTest()
        {
            ButtonState expected = new ButtonState(); // TODO: Initialize to an appropriate value
            ButtonState actual;
            CoreLib.Mouse.RightButton = expected;
            actual = CoreLib.Mouse.RightButton;
            Assert.AreEqual(expected, actual);
           // Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ScrollWheelValue
        ///</summary>
        [TestMethod()]
        public void ScrollWheelValueTest()
        {
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            CoreLib.Mouse.ScrollWheelValue = expected;
            actual = CoreLib.Mouse.ScrollWheelValue;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for X
        ///</summary>
        [TestMethod()]
        public void XTest()
        {
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            CoreLib.Mouse.X = expected;
            actual = CoreLib.Mouse.X;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for XButton1
        ///</summary>
        [TestMethod()]
        public void XButton1Test()
        {
            ButtonState expected = new ButtonState(); // TODO: Initialize to an appropriate value
            ButtonState actual;
            CoreLib.Mouse.XButton1 = expected;
            actual = CoreLib.Mouse.XButton1;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for XButton2
        ///</summary>
        [TestMethod()]
        public void XButton2Test()
        {
            ButtonState expected = new ButtonState(); // TODO: Initialize to an appropriate value
            ButtonState actual;
            CoreLib.Mouse.XButton2 = expected;
            actual = CoreLib.Mouse.XButton2;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Y
        ///</summary>
        [TestMethod()]
        public void YTest()
        {
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            CoreLib.Mouse.Y = expected;
            actual = CoreLib.Mouse.Y;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
